﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<B10.Models.ChangePasswordModel>" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%=Strings.ChangePassword%>
</asp:Content>
<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="ui-corner-all ui-helper-clearfix alternate-header" id="tabs">
        <div class="ui-widget-header-title">
            <%=Strings.ChangePassword %>
        </div>
    </div>
    <div class="content-wrapper center ui-widget-content ui-corner-all">
       <%Html.EnableClientValidation(); %>
       <%= Html.ValidationSummary(true) %>
        <% using (Html.BeginForm())
           { %>
        <div>
            <table width="100%">
                <tr>
                    <td class="editor-label">
                        <%= Html.LabelFor(m => m.OldPassword) %>
                    </td>
                    <td class="editor-field">
                        <%= Html.PasswordFor(m => m.OldPassword) %>
                        <%= Html.ValidationMessageFor(m => m.OldPassword) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <%= Html.LabelFor(m => m.NewPassword) %>
                    </td>
                    <td class="editor-field">
                        <%= Html.PasswordFor(m => m.NewPassword) %>
                        <%= Html.ValidationMessageFor(m => m.NewPassword) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <%= Html.LabelFor(m => m.ConfirmNewPassword) %>
                    </td>
                    <td class="editor-field">
                        <%= Html.PasswordFor(m => m.ConfirmNewPassword) %>
                        <%= Html.ValidationMessageFor(m => m.ConfirmNewPassword) %>
                    </td>
                </tr>
            </table>
        </div>
        <div class="right submit-button-holder">
            <button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
                type="submit" value="<%=Strings.Save %>">
                <span class="ui-button-text">
                    <%=Strings.Save %></span>
            </button>
        </div>
        <div class="clear">
        </div>
        <% } %>
    </div>
</asp:Content>
